-- GENERATED SPELL FOR [Elder Murk Thresher] --


function spell0_4390(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_4390', 565, 1)
end

function Sorts_4390(pUnit, Event)
local choix_sorts_4390 = math.random(0, 0)
if choix_sorts_4390 == 0 then
pUnit:RegisterEvent('spell0_4390', 1, 1)
end
end

function mob4390_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4390', math.random(1500, 3000), 1)
end

function mob4390_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4390_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4390_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4390, 1, 'mob4390_Action')
RegisterUnitEvent(4390, 2, 'mob4390_Leave')
RegisterUnitEvent(4390, 3, 'mob4390_Kill')
RegisterUnitEvent(4390, 4, 'mob4390_Die')
